"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = exports.lastName = exports.firstName = void 0;
var firstName = 'lili';
exports.firstName = firstName;
var lastName = 'li'; // url   ?pagenum=1&limit=10  {pagenum:1,limit:10}

exports.lastName = lastName;

var format = function format(str) {
  if (str.includes('?')) {
    str = str.slice(1);
  }

  return str.split('&').reduce(function (pre, cur) {
    var arr = cur.split('=');
    pre[arr[0]] = arr[1];
    return pre;
  }, {});
}; // export {firstName as f,lastName as l,format}


// export default format
// export 1
var m = 3; // export m;

var _default = m; // format('?pagenum=1&limit=10'); //['pagenum=1','limit=10'] [pagenum,1] [limit,10]

exports["default"] = _default;